Coffee School Using Game States
Padding out the Game Using Game States
This section looks at creating a start screen, a game over screen and keeping track of the player's score each game.
- Introduction - Introduction to game states and their representation in Crafty.
- Defining a Start and Game Scene - Here you will place your game code into its own game state and start the game by loading a start screen
- Filling the Start Screen With Graphics - In this part of the lesson you will fill your start screen with some graphics and let the player launch the game from it!
- Creating the Game Over Screen - Creating a "GameOver" scene with a message displayed on it and switching to the scene when the player loses the game
- Keeping Track of Score and Showing it to the Player - This section focuses on creating a variable to hold the players score and updating their score when they successfully clear an obstacle